From 4f2feb97c29a6dc436f305497992b1e5a48ec584 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 15 Oct 2014 14:41:42 -0400 Subject: [PATCH] Avoid deprecation warnings We don't really care if we use deprecated API inside deprecated code, so just ignore the warning. --- gtk/deprecated/gtktrayicon-x11.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/deprecated/gtktrayicon-x11.c b/gtk/deprecated/gtktrayicon-x11.c index 2ef872e62c..0789dda11e 100644 --- a/gtk/deprecated/gtktrayicon-x11.c +++ b/gtk/deprecated/gtktrayicon-x11.c @@ -502,10 +502,13 @@ gtk_tray_icon_get_visual_property (GtkTrayIcon *icon) icon->priv->manager_visual_rgba = FALSE; } + +G_GNUC_BEGIN_IGNORE_DEPRECATIONS /* For the background-relative hack we use when we aren't * using a real RGBA visual, we can't be double-buffered */ gtk_widget_set_double_buffered (GTK_WIDGET (icon), icon->priv->manager_visual_rgba); +G_GNUC_END_IGNORE_DEPRECATIONS if (type != None) XFree (prop.prop); -- 2.30.2